package population.populationFindPredicates;

import character.Character;

/**
 * Find all except for a specific character.
 * @author pcdejager
 */
public class FindAllButSpecificCharacter implements PopulationFindPredicate {
    /**
     * Constructor.
     * @param c The one to ignore
     */
    public FindAllButSpecificCharacter(final Character c) {
        specific = c;
    }
    /**
     * Check.
     * @param c The character to check
     * @return True if succeed, else false
     */
    public final boolean check(final Character c) {
        if (c == specific) {
            return false;
        }
        return true;
    }
    /**
     * The specific character to ignore.
     */
    private final Character specific;
}
